import { axios } from "@/utils/request";
//添加淘礼金商品
export function doaddCashGoods(parameter) {
  return axios({
    url: "/admin/add_cash_goods",
    method: "post",
    data: parameter
  });
}
//获取我的淘礼金商品
export function getMineCashGoods(parameter) {
  return axios({
    url: "/admin/top_get_cash_goods",
    method: "post",
    data: parameter
  });
}
//修改淘礼金商品
export function doEditCashGoods(parameter) {
  return axios({
    url: "/admin/update_top_cash_goods",
    method: "post",
    data: parameter
  });
}
//上下架淘礼金商品
export function upOrDownCashGoods(parameter) {
  return axios({
    url: "/admin/put_shelf",
    method: "post",
    data: parameter
  });
}
//淘礼金列表链接
export function getCashUrlList(parameter) {
  return axios({
    url: "/admin/get_cash_gift_page",
    method: "post",
    data: parameter
  });
}
//获取商品档次的淘礼金链接
export function getCashGoodsUrl(parameter) {
  return axios({
    url: "/admin/get_goods_cash_url_info",
    method: "post",
    data: parameter
  });
}
//新增淘礼金链接
export function doAddCashUrl(parameter) {
  return axios({
    url: "/admin/add_cash_gift",
    method: "post",
    data: parameter
  });
}
//修改淘礼金链接
export function doEditCashUrl(parameter) {
  return axios({
    url: "/admin/update_cash_gift",
    method: "post",
    data: parameter
  });
}
//删除淘礼金链接
export function doDelCashUrl(parameter) {
  return axios({
    url: "/admin/del_cash_info",
    method: "post",
    data: parameter
  });
}
//获取淘礼金档次
export function getCashGrade(parameter) {
  return axios({
    url: "/admin/get_cash_grade",
    method: "get",
    data: parameter
  });
}
//获取淘礼金商品列表
export function getCashGoodsList(parameter) {
  return axios({
    url: "/admin/get_goods_cash_list",
    method: "post",
    data: parameter
  });
}
